import { defineComponent, defineEmits } from 'vue';
import { EleModal } from 'ele-admin-pro';

const emit = defineEmits<{
  (e: 'update:isShow', isShow: boolean): void;
}>();
const TableFilter = defineComponent({
  components: { EleModal },
  props: {
    isShow: {
      type: Boolean,
      default: () => {
        return false;
      }
    },
    closeTableFilter: null
  },
  setup(props) {
    const handleSubmit = () => {};
    return () => (
      <EleModal
        title="过滤"
        visible={props.isShow}
        onOk={handleSubmit}
        onCancel={() => {
          emit('update:isShow', false);
        }}
      >
        自定义过滤
      </EleModal>
    );
  }
});
export default TableFilter;
